package Mundo;

import java.io.Serializable;
import java.awt.image.*;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Fernando
 */
public class Celda implements Serializable{
    private final char tipoTerreno;
    private char elementoEnCelda;
    private final int x;
    private final int y;
    transient private BufferedImage tile;
    transient private BufferedImage sprite;

    public BufferedImage getSprite() {
        return sprite;
    }

    public void setSprite(BufferedImage sprite) {
        this.sprite = sprite;
    }

    
    public void setTile(BufferedImage tile) {
        this.tile = tile;
    }

    public BufferedImage getTile() {
        return tile;
    }

    public char getElementoEnCelda() {
        return elementoEnCelda;
    }

    public void setElementoEnCelda(char elementoEnCelda) {
        this.elementoEnCelda = elementoEnCelda;
    }

    
    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

    public char getTipoTerreno() {
        return tipoTerreno;
    }
    public Celda(char tipoTerreno, int x, int y,BufferedImage tile) {
        this.tipoTerreno = tipoTerreno;
        this.x = x;
        this.y = y;
        this.tile=tile;
        this.elementoEnCelda=' ';
        this.sprite=null;
    }
}
